package com.hxexp.weixin.constant;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 车票类型常量
 *
 * @author wang.bin
 *
 */
public final class TicketType {

    /**
     * 全票
     */
    public static final String FULLTICKET = "1";
    /**
     * 半票
     */
    public static final String HALFTICKET = "2";
    /**
     * 全票带儿免票
     */
    public static final String FREETICKET = "3";
    /**
     * 半票带儿免票
     */
    public static final String HALFFREETICKET = "4";
    /**
     * 编码和名称的映射
     */
    public static final Map<String, String> CODE_NAME_MAP = Collections.synchronizedMap(new LinkedHashMap<String, String>(3));
    // 映射数据初始化
    static {
        CODE_NAME_MAP.put(FULLTICKET, "全票");
        CODE_NAME_MAP.put(HALFTICKET, "半票");
        CODE_NAME_MAP.put(FREETICKET, "全票携童");
        CODE_NAME_MAP.put(HALFFREETICKET, "半票携童");
    }
    private TicketType() {
    }
}
